home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 November / Freeware November 1998.img / dist / fw_lynx.idb / usr / freeware / lib / lynx-2.8 / mailcap.z / mailcap
Text File  |  1998-05-21  |  5KB  |  100 lines

  1. # Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  2. # Permission to use, copy, modify, and distribute this material 
  3. # for any purpose and without fee is hereby granted, provided 
  4. # that the above copyright notice and this permission notice 
  5. # appear in all copies, and that the name of Bellcore not be 
  6. # used in advertising or publicity pertaining to this 
  7. # material without the specific, prior written permission 
  8. # of an authorized representative of Bellcore.  BELLCORE 
  9. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  10. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  11. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  12. #
  13. # Prototype Mailcap file
  14. # Note that support for text & multipart are "built in" to metamail,
  15. # as are rudimentary support for message, and application.
  16. # However, any of these may be overridden in mailcap.
  17. #
  18. # Note that users may override or extend this with a .mailcap
  19. # file in their own directory.  However, there is NO NEED
  20. # for them to copy entries from this file, as metamail will
  21. # pick up entries from both the system and personal mailcap files.
  22. #
  23.  
  24. # NOTE:  This file has been heavily modified for use as an example
  25. #        configuration file for Lynx
  26.  
  27. # In the samples given   test=test -n "$DISPLAY"   is used to
  28. # determine if the current session is X capible by checking
  29. # for the existance of a DISPLAY environment variable.
  30. # Lynx actually uses a getenv() call for DISPLAY (DECW$DISPLAY
  31. # on VMS) when it encounters   test=test -n "$DISPLAY"  or
  32. # test=test -z "$DISPLAY"  in a viewer assignment, instead of
  33. # spawning to execute "test" via a system() call, i.e., those
  34. # two strings, respectively, are handled equivalently to the
  35. # :XWINDOWS and :NON_XWINDOWS flags for VIEWER: assignments
  36. # in lynx.cfg.  Any system without the DISPLAY (or DECW$DISPLAY)
  37. # environment variable will be assumed to be Non-X.
  38.  
  39. # You can append a ';' followed by "q=#.#", e.g.,  ; q=0.002
  40. # to set the quality parameter for the Content-Type, which can be
  41. # included in the Accept: header Lynx sends to http servers (the
  42. # default quality value is 1.0, and Lynx appends the parameter
  43. # to the Content-Type only if the value is less than 1.0).
  44.  
  45. # You can append a ';' followed by "mxb=#", e.g.,  ; mxb=1000000
  46. # to set the maxbytes parameter for the Content-Type, which can be
  47. # included in the Accept: header Lynx sends to http servers (the
  48. # default maxbytes value is 0, meaning no maximum, and Lynx appends
  49. # the parameter to the Content-Type only if the value exceeds 0).
  50.  
  51. # The following line is for sites where xv understands jpeg but xloadimage 
  52. # is preferred.
  53. #
  54. # the test line specifies that this viewer should only be used if
  55. # the display variable is set.
  56. image/jpeg; xv %s;  test=test -n "$DISPLAY"
  57.  
  58. # The following sends all other image subtypes to xloadimage
  59. #image/*; xloadimage %s; ;  test=test -n "$DISPLAY"
  60.  
  61. # The following sends all other image subtypes to xv
  62. image/*; xv %s; ;  test=test -n "$DISPLAY"
  63.  
  64.  
  65. # If you have an interactive Postscript interpreter, you should think carefully 
  66. # before replacing lpr with it in the following line, because PostScript
  67. # can be an enormous security hole.  It is RELATIVELY harmless
  68. # when sent to the printer...
  69.  
  70. # This one is for NON-X
  71. #application/postscript; lpr %s \; echo SENT FILE TO PRINTER; ;test=test -z "$DISPLAY"
  72.  
  73. # This one is for X.  It's already the default via src/HTInit.c.
  74. #application/postscript; ghostview %s; ;  test=test -n "$DISPLAY"
  75.  
  76. # The following should be commented out if you do NOT have safe-tcl
  77. # and should be uncommented if you DO have safe-tcl
  78. #application/safe-tcl; swish -safe -messaging -f %s
  79.  
  80. # A common problem with the mailcap mechanism is getting differential 
  81. # behavior from different programs.  This problem is compounded by the fact 
  82. # that some programs, notably Mosaic, do not implement the "test" clause in 
  83. # mailcap files.  If you are using Lynx and X Mosaic together you should
  84. # place all X-centric entries before non-X entries.  X Mosaic will use
  85. # whichever entry is defined first so further entries will be ignored.
  86. #
  87. # Lynx exports the environment variable LYNX_VERSION, so it can be tested
  88. # by scripts to determine if Lynx is running or not.  However, the string
  89. #   test=test -n "$LYNX_VERSION"
  90. # is handled simply as a flag which yields success when Lynx encounters it
  91. # in the mailcap file (i.e., Lynx does not bother to execute "test" via a
  92. # system() call to find out if it's running, because it obviously is).
  93. # Inclusion of the string for that test can be used to prevent other
  94. # software which reads the mailcap file from acting on assignments intended
  95. # only for Lynx.  The string
  96. #   test=test -z "$LYNX_VERSION"
  97. # similarly is treated by Lynx simply as a flag which yields failure.
  98.  
  99.